* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #fff;
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-weight: 200;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
}


/* =====================================================
   HEADER
===================================================== */

.encabezado-sitio {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    width: 100%;
    height: 70px;
    padding: 22px 28px;
    pointer-events: none;

    color: white;
    mix-blend-mode: difference;
}

.titulo-sitio,
.navegacion-escritorio,
.boton-menu {
    pointer-events: auto;
}

.titulo-sitio {
    font-size: 18px;
    line-height: 1;
    font-weight: 200;
}

.titulo-sitio a,
.navegacion-escritorio a {
    transition: opacity .25s ease;
}

.titulo-sitio a:hover,
.navegacion-escritorio a:hover {
    opacity: .4;
}

.navegacion-escritorio {
    display: flex;
    gap: 24px;
    margin-left: auto;
    font-size: 14px;
    font-weight: 200;
}

.boton-menu,
.menu-lateral {
    display: none;
}


/* =====================================================
   GENERAL
===================================================== */

.proyecto,
.galeria-proyecto {
    width: 100%;
}


/* =====================================================
   PORTADA
===================================================== */

.portada-proyecto {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    min-height: 100vh;
    margin-bottom: 50px;
}

.portada-imagen {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.portada-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portada-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100vh;
    padding: 7vw 6vw;
}

.portada-texto h2 {
    margin-bottom: 38px;
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
}

.texto-en-columnas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 55px;
}

.columna-texto {
    font-size: 15px;
    line-height: 1.6;
}

.columna-texto p {
    margin-bottom: 19px;
}

.palabras-clave {
    margin-top: 42px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: .02em;
}


/* =====================================================
   BLOQUE HORIZONTAL
===================================================== */

.bloque-horizontal {
     position: relative;
}

.imagen-horizontal-sangria {
    width: 100vw;
    margin: 0 0 30px;
    overflow: hidden;
}

.bloque-horizontal .imagen-horizontal-sangria {
    height: 82vh;
    margin-bottom: 3rem;
}

.imagen-horizontal-sangria img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.bloque-horizontal .imagen-horizontal-sangria img {
    height: 100%;
}

.texto-horizontal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10vw;
    width: 100%;
    padding: 55px 7vw 0;
    font-size: 15px;
    line-height: 1.65;
}

.texto-horizontal .texto-en-columnas {
    display: contents;
}

.texto-horizontal .columna-texto:first-child {
    grid-column: 1;
}

.texto-horizontal .columna-texto:nth-child(2) {
    grid-column: 2;
}

.texto-horizontal p {
    margin-bottom: 22px;
}


/* =====================================================
   GALERÍA DOBLE
===================================================== */

.galeria-doble-horizontal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3vw;
    margin: 100px 7vw 70px;
}

.galeria-doble-horizontal figure {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.galeria-doble-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* =====================================================
   BLOQUES RETRATO
===================================================== */

.bloque-retrato-imagen-izquierda,
.bloque-retrato-texto-derecha,
.bloque-retrato-imagen-derecha {
    position: relative;
    display: grid;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
    padding: 0 7vw;
    column-gap: 7vw;
    max-height: 100vh;
}

.bloque-retrato-imagen-izquierda,
.bloque-retrato-texto-derecha {
    grid-template-columns: minmax(300px, 48vw) minmax(160px, 1fr);
    grid-template-areas: "imagen texto";
}

.bloque-retrato-imagen-izquierda,
.bloque-retrato-texto-derecha .imagen-retrato {
    max-height: 100vh;
    overflow: hidden;
}

.bloque-retrato-imagen-izquierda,
.bloque-retrato-texto-derecha .imagen-retrato img {
    max-height: 100vh;
    object-fit: contain;
}

.bloque-retrato-imagen-derecha {
    grid-template-columns: minmax(180px, 1fr) minmax(420px, 38vw);
    grid-template-areas: "texto imagen";
    column-gap: 8vw;
    margin-bottom: 50px;
}

.imagen-retrato {
    grid-area: imagen;
    width: 100%;
    max-width: 650px;
}

.texto-bloque {
    grid-area: texto;
    width: 100%;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.65;
}

.texto-bloque p {
    margin-bottom: 22px;
}

.bloque-retrato-imagen-derecha .imagen-retrato {
    justify-self: end;
    max-width: 620px;
}

.bloque-retrato-imagen-derecha .texto-bloque {
    justify-self: end;
}


/* =====================================================
   TEXTO VERTICAL
   Oculto en escritorio.
   Aparece únicamente en móvil.
===================================================== */

.texto-vertical {
    display: block;
    position: absolute;

    top: 50%;
    right: -38px;

    font-family: "Nixie One", serif;
    font-size: clamp(48px, 14vw, 62px);
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: -0.03em;
    white-space: nowrap;

    color: #111;

    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;

    z-index: 20;
}

/* =====================================================
   CITA EDITORIAL
===================================================== */

.cita-editorial {
    width: 100%;
    padding: 40px 15vw 70px;
    font-family: "Nixie One", serif;
    font-size: 25px;
    line-height: 1.5;
}

.cita-editorial p {
    max-width: 900px;
}


/* =====================================================
   PIE DE IMAGEN
===================================================== */

.pie-de-imagen {
    padding: 10px 7vw 10px;
    line-height: 1.7;
    font-size: 13px;
}

.pie-de-imagen span {
    display: block;
}


/* =====================================================
   CIERRE
===================================================== */

.imagen-de-cierre {
    margin-bottom: 0;
}
.back-artwork {
    display: none;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .encabezado-sitio .back-artwork {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: auto;
        right: auto;
        bottom: 0.8rem;
        left: 0.8rem;
        min-height: 44px;
        margin: 0 !important;
        padding: 0.85rem 1.25rem;
        pointer-events: auto;
        font-family: "Montserrat", sans-serif;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1;
        z-index: 100;
        transition: opacity .25s ease;
    }

    .encabezado-sitio .back-artwork:hover {
        opacity: .4;
    }
    .encabezado-sitio {
        padding: 20px;
    }

    .navegacion-escritorio {
        display: none;
    }

    .boton-menu {
        display: none;
    }

    .menu-lateral {
        position: absolute;
        top: 20px;
        right: 20px;
        display: block;
        width: auto;
        height: auto;
        padding: 0;
        pointer-events: auto;
    }

    .menu-lateral a {
        display: block;
        padding: 4px 0;
        font-size: 0.8rem;
        line-height: 1;
        text-align: right;
    }

    .menu-lateral .boton-cerrar {
        display: none;
    }

    .portada-texto {
        padding: 7vw 5vw;
    }

    .portada-texto h2 {
        font-size: 0.8rem;
    }

    .texto-en-columnas {
        font-size: 0.8rem;
        column-gap: 30px;
    }

    .columna-texto {
        font-size: 10px;
    }

    .bloque-retrato-imagen-izquierda,
    .bloque-retrato-texto-derecha {
        grid-template-columns: minmax(250px, 1fr) minmax(150px, 1fr);
        column-gap: 6vw;
        padding: 0 6vw;
    }

    .imagen-horizontal-sangria-imagen-de-cierre {
        padding-top: 50px;
    }
}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 600px) {

    .texto-vertical {
        display: block;
        position: absolute;

        top: 50%;
        right: 50px;

        font-family: "Nixie One", serif;
        font-size: 5rem;
        font-weight: 400;
        line-height: 0.85;
        letter-spacing: -0.03em;

        white-space: nowrap;
        color: #111;

        transform: translateY(-50%) rotate(-90deg);
        transform-origin: right center;

        z-index: 100;
    }



    /* =================================================
       HEADER
    ================================================== */

    .encabezado-sitio {
        height: 55px;
        padding: 0;
    }

    .titulo-sitio {
        font-size: 1rem;
        padding: 18px 14px;
    }

    .menu-lateral {
        top: 18px;
        right: 14px;
    }


    /* =================================================
       PORTADA
    ================================================== */

    .portada-proyecto {
        display: block;
        min-height: auto;
        margin-bottom: 15px;
    }

    .portada-imagen {
        height: 65vh;
    }

    .portada-texto {
        display: block;
        height: auto;
        padding: 30px 16px 40px;
    }

    .portada-texto h2 {
        margin-bottom: 28px;
        font-size: 13px;
    }

    .texto-en-columnas {
        display: block;
    }

    .columna-texto {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .columna-texto p {
        margin-bottom: 0;
    }

    .palabras-clave {
        margin-top: 32px;
        font-size: 0.7rem;
    }


    /* =================================================
       BLOQUE HORIZONTAL
    ================================================== */

    .bloque-horizontal {
        padding-bottom: 1rem;
    }

    .bloque-horizontal .imagen-horizontal-sangria {
        height: 52vh;
    }

    .texto-horizontal {
        display: block;
        padding: 15px 16px 40px;
        font-size: 9px;
        line-height: 1.6;
    }


    /* =================================================
       GALERÍA DOBLE
    ================================================== */

    .galeria-doble-horizontal {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0 16px 40px;
    }


    /* =================================================
       IMÁGENES
    ================================================== */

    .imagen-horizontal-sangria,
    .imagen-retrato {
        width: 100vw;
        margin-right: 0;
        margin-left: 0;
    }

    .imagen-horizontal-sangria img,
    .imagen-retrato img {
        width: 100vw;
        height: auto;
    }


    /* =================================================
       IMAGEN DE CIERRE
    ================================================== */

    .imagen-horizontal-sangria-imagen-de-cierre {
        width: 100vw;
        height: 100vh;
        height: 100svh;
        margin: 0;
        overflow: hidden;
    }

    .imagen-horizontal-sangria-imagen-de-cierre img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }


    /* =================================================
       BLOQUES RETRATO EN MÓVIL
    ================================================== */

    .bloque-retrato-imagen-izquierda,
    .bloque-retrato-texto-derecha,
    .bloque-retrato-imagen-derecha {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-bottom: 0;
        padding: 0;
    }

    .imagen-retrato {
        order: 1;
        max-width: none;
    }

    .bloque-retrato-texto-derecha .imagen-retrato {
        max-height: none;
        overflow: visible;
    }

    .bloque-retrato-texto-derecha .imagen-retrato img {
        max-height: none;
        object-fit: initial;
    }

    .texto-bloque {
        order: 2;
        max-width: none;
        padding: 50px 20px 10px;
        font-size: 0.75rem;
        line-height: 1.55;
    }

    .texto-bloque p {
        margin-bottom: 15px;
    }


    /* =================================================
       CITA EDITORIAL
    ================================================== */

    .cita-editorial {
        padding: 30px 16px 45px;
        font-size: 20px;
    }

    .cita-editorial p {
        max-width: 100%;
    }


    /* =================================================
       PIE DE IMAGEN
    ================================================== */

    .pie-de-imagen {
        padding: 10px 16px 20px;
        font-size: 0.7rem !important;
    }


    /* =================================================
       OTROS
    ================================================== */

    .imagen-horizontal-sangria {
        margin-bottom: 10px;
    }

    .imagen-algae9 {
        display: none;
    }

    .imagen-de-cierre {
        margin-bottom: 0;
    }
}


/* =====================================================
   MÓVILES MUY PEQUEÑOS
===================================================== */

@media (max-width: 380px) {

    .portada-texto {
        padding-right: 14px;
        padding-left: 14px;
    }

    .columna-texto {
        font-size: 8px;
    }

    .texto-bloque {
        padding-right: 14px;
        padding-left: 14px;
    }

    /* Ajuste del texto vertical para pantallas pequeñas */
    .texto-vertical {
        right: -15px;
        font-size: 28px;
    }
}